# java -jar 启动服务，TODO 这个cmdlet无法指定windowTitle，但cmd的start可以
Start-Process -FilePath "java.exe" -ArgumentList "-jar .\java.jar"


# 修改当前的windowTitle
$Host.UI.RawUI.WindowTitle = '启动jar'


#查看java启动服务
Get-Process java
#Get all available data about one or more processes
Get-Process -Id <pid> | Format-List *


#停止进程，Specifies the process IDs of the processes to stop. To specify multiple IDs, use commas to separate the IDs. To find the PID of a process, type Get-Process.
Stop-Process -Id <pid>


